<html>
<head><meta charset="utf-8"><title>Breaking change, `eh_unwind_resume` removed · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html">Breaking change, `eh_unwind_resume` removed</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="192173413"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192173413" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192173413">(Mar 29 2020 at 13:06)</a>:</h4>
<p>Previously no-std working code had to define a <code>eh_personality</code> lang item. now this code doesn't compile with:<br>
<code>definition of unknown language item </code>eh_unwind_resume`.<br>
Example: <a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=9df0b520f99f60d369d2fc3a331b5b42" title="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=9df0b520f99f60d369d2fc3a331b5b42">https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=9df0b520f99f60d369d2fc3a331b5b42</a></p>
<p>Example in the wild: <a href="https://travis-ci.org/github/rust-bitcoin/rust-secp256k1/jobs/666330964#L1175" title="https://travis-ci.org/github/rust-bitcoin/rust-secp256k1/jobs/666330964#L1175">https://travis-ci.org/github/rust-bitcoin/rust-secp256k1/jobs/666330964#L1175</a></p>
<p><em>I think</em> this was introduced here: <a href="https://github.com/rust-lang/rust/pull/67502" title="https://github.com/rust-lang/rust/pull/67502">https://github.com/rust-lang/rust/pull/67502</a></p>



<a name="192173433"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192173433" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192173433">(Mar 29 2020 at 13:06)</a>:</h4>
<p>It seems the same is true for <code>eh_unwind_resume</code></p>



<a name="192173518"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192173518" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192173518">(Mar 29 2020 at 13:09)</a>:</h4>
<p>Removing <code>fn rust_eh_unwind_resume</code> fixes the issue.</p>



<a name="192173673"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192173673" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192173673">(Mar 29 2020 at 13:12)</a>:</h4>
<p>I believe just dropping the function should work, yes.</p>



<a name="192173781"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192173781" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192173781">(Mar 29 2020 at 13:15)</a>:</h4>
<p>I know. just wanted to raise awareness to that fact :)</p>



<a name="192174918"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192174918" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192174918">(Mar 29 2020 at 13:41)</a>:</h4>
<p>I mean lang items are entirely internal to the compiler, it's no surprise code breaks when it depends on them</p>



<a name="192174991"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192174991" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192174991">(Mar 29 2020 at 13:42)</a>:</h4>
<p>this is no more a "breaking change" (in the semver sense) than e.g. removing/changing an intrinsic</p>



<a name="192175803"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192175803" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192175803">(Mar 29 2020 at 14:00)</a>:</h4>
<p>You're right. <em>but</em> because these lang items were required for any no-std/embedded use, it's a bit more suprising to see code break without hearing about their removal (and I consider myself pretty much up to date for someone who isn't a compiler dev)</p>



<a name="192176078"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176078" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176078">(Mar 29 2020 at 14:04)</a>:</h4>
<p>So maybe it would be a good idea to post about this on IRLO or so?</p>



<a name="192176087"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176087" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176087">(Mar 29 2020 at 14:04)</a>:</h4>
<p>No hurt in doing that</p>



<a name="192176100"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176100" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176100">(Mar 29 2020 at 14:05)</a>:</h4>
<p>are there stable things people should do instead these days?</p>



<a name="192176103"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176103" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176103">(Mar 29 2020 at 14:05)</a>:</h4>
<p>Unstable features haven't been required for a while now, your entire <code>no_std_test</code> can probably be made to work on stable</p>



<a name="192176108"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176108" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176108">(Mar 29 2020 at 14:05)</a>:</h4>
<p>(something something <code>#[panic_handler]</code>)</p>



<a name="192176115"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176115" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176115">(Mar 29 2020 at 14:05)</a>:</h4>
<p>(for no_std/embedded use that is)</p>



<a name="192176120"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176120" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176120">(Mar 29 2020 at 14:05)</a>:</h4>
<p>if so, the IRLO post could mention that</p>



<a name="192176558"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176558" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> XAMPPRocky <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176558">(Mar 29 2020 at 14:14)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> Depending on the scale of the breakage it would also be good to post about it on the "Inside Rust" blog.</p>



<a name="192176565"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176565" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amanieu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176565">(Mar 29 2020 at 14:14)</a>:</h4>
<p>I doubt the breakage is that significant.</p>



<a name="192176588"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176588" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amanieu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176588">(Mar 29 2020 at 14:15)</a>:</h4>
<p>The <code>eh_unwind_resume</code> lang item was only required on windows-gnu targets.</p>



<a name="192176682"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176682" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176682">(Mar 29 2020 at 14:17)</a>:</h4>
<p>When I wrote that test it failed when I didn't implement those lang items</p>



<a name="192176744"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176744" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> XAMPPRocky <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176744">(Mar 29 2020 at 14:19)</a>:</h4>
<p><span class="user-mention" data-user-id="143274">@Amanieu</span> I can't speak to this particular case. I was more saying in the future, consider writing an Inside Rust post about the nightly breaking changes if they are significant.</p>



<a name="192176797"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176797" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amanieu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176797">(Mar 29 2020 at 14:20)</a>:</h4>
<p>I would definitely expect a post about the <code>asm!</code> to <code>llvm_asm!</code> renaming since that's a pretty significant change.</p>



<a name="192176811"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176811" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176811">(Mar 29 2020 at 14:20)</a>:</h4>
<p><span class="user-mention silent" data-user-id="211727">Jonas Schievink</span> <a href="#narrow/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed/near/192176103" title="#narrow/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed/near/192176103">said</a>:</p>
<blockquote>
<p>Unstable features haven't been required for a while now, your entire <code>no_std_test</code> can probably be made to work on stable</p>
</blockquote>
<p>Even <code>start</code> doesn't work on stable</p>
<div class="codehilite"><pre><span></span>error[E0658]: `#[start]` functions are experimental and their signature may change over time
</pre></div>



<a name="192176988"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192176988" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192176988">(Mar 29 2020 at 14:24)</a>:</h4>
<p>I didn't mean to say it'll work on stable by just removing the feature gates</p>



<a name="192177000"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192177000" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192177000">(Mar 29 2020 at 14:25)</a>:</h4>
<p><span class="user-mention silent" data-user-id="143274">Amanieu</span> <a href="#narrow/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed/near/192176797" title="#narrow/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed/near/192176797">said</a>:</p>
<blockquote>
<p>I would definitely expect a post about the <code>asm!</code> to <code>llvm_asm!</code> renaming since that's a pretty significant change.</p>
</blockquote>
<p>Even trying to make this work on current stable I very fast get this linker error:<br>
<code>/usr/bin/ld: /home/elichai2/gits/rust-secp256k1/no_std_test/target/debug/deps/no_std_test-1cf5bdb9b6995360.22glz8jg3lucse6p.rcgu.o:(.data.DW.ref.rust_eh_personality[DW.ref.rust_eh_personality]+0x0): undefined reference to </code>rust_eh_personality'`</p>



<a name="192177005"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192177005" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192177005">(Mar 29 2020 at 14:25)</a>:</h4>
<p><span class="user-mention silent" data-user-id="211727">Jonas Schievink</span> <a href="#narrow/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed/near/192176988" title="#narrow/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed/near/192176988">said</a>:</p>
<blockquote>
<p>I didn't mean to say it'll work on stable by just removing the feature gates</p>
</blockquote>
<p>Would appreciate an example of how :)</p>



<a name="192177210"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192177210" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192177210">(Mar 29 2020 at 14:30)</a>:</h4>
<p>Seems like targets that ship libstd do require the start lang item (unsure why though), but the rest of the features can be removed</p>



<a name="192177226"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192177226" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192177226">(Mar 29 2020 at 14:31)</a>:</h4>
<p>Can I remove the <code>start</code> feature?</p>



<a name="192177370"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192177370" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192177370">(Mar 29 2020 at 14:34)</a>:</h4>
<p>Not while building for a target with libstd, at least I don't think so</p>



<a name="192178278"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192178278" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192178278">(Mar 29 2020 at 14:55)</a>:</h4>
<p>Ah, nevermind, I forgot about <code>#![no_main]</code></p>
<div class="codehilite"><pre><span></span><span class="cp">#![no_std]</span><span class="w"></span>
<span class="cp">#![no_main]</span><span class="w"></span>

<span class="k">use</span><span class="w"> </span><span class="n">core</span>::<span class="n">panic</span>::<span class="n">PanicInfo</span><span class="p">;</span><span class="w"></span>

<span class="cp">#[link(name = </span><span class="s">&quot;c&quot;</span><span class="cp">)]</span><span class="w"></span>
<span class="k">extern</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">fn</span> <span class="nf">exit</span><span class="p">(</span><span class="n">code</span>: <span class="kt">i32</span><span class="p">);</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="cp">#[no_mangle]</span><span class="w"></span>
<span class="k">fn</span> <span class="nf">main</span><span class="p">()</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">unsafe</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">        </span><span class="n">exit</span><span class="p">(</span><span class="mi">0</span><span class="p">);</span><span class="w"></span>
<span class="w">    </span><span class="p">}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>

<span class="cp">#[panic_handler]</span><span class="w"></span>
<span class="k">fn</span> <span class="nf">panic</span><span class="p">(</span><span class="n">_info</span>: <span class="kp">&amp;</span><span class="nc">PanicInfo</span><span class="p">)</span><span class="w"> </span>-&gt; <span class="o">!</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">    </span><span class="k">loop</span><span class="w"> </span><span class="p">{</span><span class="w"></span>
<span class="w">        </span><span class="k">continue</span><span class="p">;</span><span class="w"></span>
<span class="w">    </span><span class="p">}</span><span class="w"></span>
<span class="p">}</span><span class="w"></span>
</pre></div>


<p>Build with <code>rustc -Cpanic=abort main.rs</code></p>



<a name="192178527"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192178527" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amanieu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192178527">(Mar 29 2020 at 15:01)</a>:</h4>
<p><span class="user-mention" data-user-id="249222">@Elichai Turkel</span> Only the eh_unwind_resume target feature got removed. There was no change to eh_personality.</p>



<a name="192178955"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Breaking%20change%2C%20%60eh_unwind_resume%60%20removed/near/192178955" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Elichai Turkel <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Breaking.20change.2C.20.60eh_unwind_resume.60.20removed.html#192178955">(Mar 29 2020 at 15:11)</a>:</h4>
<p><span class="user-mention" data-user-id="143274">@Amanieu</span> You're right I somehow got confused here</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>